<?php

namespace App\Service;

/**
 * Description of PostType
 *
 * @author Administrator
 */
class PostType
{

	/**
	 * 获取所有分类的信息
	 * @return type
	 */
	public static function getAll()
	{
		$model = \Core\Db::getInstance();
		$all = $model->select('select * from bg_posts_type');
		if (empty($all))
			return [];
		$return = [];
		foreach ($all as $v)
			$return[$v['id']] = $v;
		return $return;
	}

}
